home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / OCEErrors.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  19KB  |  364 lines

  1. /*
  2.      File:        OCEErrors.h
  3.  
  4.      Contains:    Apple Open Collaboration Environment Error Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __OCEERRORS__
  19. #define __OCEERRORS__
  20.  
  21. #ifndef __ERRORS__
  22. #include <Errors.h>
  23. #endif
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. #if PRAGMA_IMPORT_SUPPORTED
  30. #pragma import on
  31. #endif
  32.  
  33. #if PRAGMA_ALIGN_SUPPORTED
  34. #pragma options align=mac68k
  35. #endif
  36.  
  37. #if FOR_SYSTEM7_ONLY
  38. /*
  39. Allocated ranges:
  40.     AOCE General Errors                        -1500 to -1539
  41.     AOCE Authentication Errors                -1540 to -1609
  42.     AOCE Catalog Errors                        -1610 to -1680
  43.     
  44.     AOCE Standard Mail Errors                -1900 to -1949
  45.     AOCE Standard Catalog Errors            -1950 to -1969
  46.     AOCE Digital Signature Errors            -1970 to -1999
  47.  
  48.     AOCE Templates Errors                    -15000 to -15039
  49.     AOCE Mail Errors                        -15040 to -15089
  50.     AOCE Messaging Errors                    -15090 to -15169
  51.     Reserved for future                        -15170 to -15199
  52. */
  53. /* AOCE General Errors (-1500 to -1539) */
  54.  
  55. enum {
  56.     kOCEToolboxNotOpen            = -1500,                        /* Toolbox not open; perhaps its closing */
  57.     kOCEInvalidCommand            = -1501,                        /* Request code passed to a trap call is invalid */
  58.     kOCEInvalidRef                = -1502,                        /* a reference to an object is obsolete or invalid */
  59.     kOCEBufferTooSmall            = -1503,                        /* the buffer supplied is too small for the task */
  60.     kOCEVersionErr                = -1504,                        /* some manner of software version mismatch */
  61.     kOCESyncAsyncErr            = -1505,                        /* Op tried synchronously may only be done async, or vice versa */
  62.     kOCEInternalErr                = -1506,                        /* the OCE toolbox has an internal error */
  63.     kOCENotAnOwner                = -1507,                        /* this operation can only be done by the object's owner */
  64.     kOCENotImplemented            = -1508,                        /* Feature not implemented */
  65.     kOCENotAuthenticated        = -1509,                        /* The user must be authenticated */
  66.     kOCEAlreadyExists            = -1510,                        /* The object being added already exists */
  67.     kOCEDoesntExist                = -1511,                        /* the object being referenced doesn't exist or cannot be found */
  68.     kOCEConnectionErr            = -1512,                        /* Unable to open or maintain a network transport */
  69.     kOCEConnectionClosed        = -1513,                        /* Connect has closed */
  70.     kOCEInvalidRecipient        = -1514,                        /* Invalid recipient/address for this command */
  71.     kOCEInvalidIndex            = -1515,                        /* invalid index (out of range) */
  72.     kOCERefIsClosing            = -1516,                        /* Object references is being closed, cannot complete command */
  73.     kOCEHasPendingMsgs            = -1517,
  74.     kOCEInvalidConfiguration    = -1518,
  75.     kOCERequiredServicesNotAvailable = -1519,
  76.     kOCEServerInactive            = -1520,
  77.     kOCEMoreDiskSpaceNeeded        = -1521,                        /* Inadequate disk space to safely complete operation */
  78.     kOCEParamErr                = paramErr                        /* invalid parameter passed to toolbox */
  79. };
  80.  
  81. /* AOCE Authentication Errors (-1540 to -1609) */
  82.  
  83. enum {
  84.     kOCEReadAccessDenied        = -1540,
  85.     kOCEWriteAccessDenied        = -1541,
  86.     kOCEAccessRightsInsufficient = -1542,                        /* stream needs to be authenticated, or not authorized, or someone other than agent trying to TPFC, or problem in server-to-server authentication */
  87.     kOCEUnsupportedCredentialsVersion = -1543,                    /* don't know how to read that version of credentials */
  88.     kOCECredentialsProblem        = -1544,                        /* couldn't successfully decrypt credentials */
  89.     kOCECredentialsImmature        = -1545,                        /* current time < first valid time */
  90.     kOCECredentialsExpired        = -1546,                        /* current time > expiry time */
  91.     kOCEProxyImmature            = -1547,                        /* current time < proxy start time */
  92.     kOCEProxyExpired            = -1548,                        /* current time > proxy expiry time */
  93.     kOCEDisallowedRecipient        = -1549,                        /* Recipient not specified in proxy */
  94.     kOCENoKeyFound                = -1550,                        /* found no key for entity in question */
  95.     kOCEPrincipalKeyNotFound    = -1551,                        /* couldn't decode proxy because principal has no key */
  96.     kOCERecipientKeyNotFound    = -1552,                        /* recipient has no key */
  97.     kOCEAgentKeyNotFound        = -1553,                        /* in TPFC, agent has no key */
  98.     kOCEKeyAlreadyRegistered    = -1554,                        /* entity already has a key */
  99.     kOCEMalformedKey            = -1555,                        /* key is of an unknown encryption method, or key doesn't match password */
  100.     kOCEUndesirableKey            = -1556,                        /* password too short, key too simple, or trying to change cluster key to the same value */
  101.     kOCEWrongIdentityOrKey        = -1557,                        /* In CheckIdentity, name doesn't exist or key is wrong */
  102.     kOCEInitiatorKeyProblem        = -1558,                        /* either we couldn't find the initiator's key or we found it but couldn't successfully decrypt instructions or proxy */
  103.     kOCEBadEncryptionMethod        = -1559,                        /* the specified encryption method is not supported */
  104.     kOCELocalIdentityDoesNotExist = -1560,                        /* LocalIdentity has to be setup */
  105.     kOCELocalAuthenticationFail    = -1561,                        /* LocalIdentity Login has to be done for this operation */
  106.     kOCELocalIdentitySetupExists = -1562,                        /* LocalIdentity setup exists, use change instead of setup */
  107.     kOCEDirectoryIdentitySetupExists = -1563,                    /* DirectoryIdentity setup exists, use change instead of setup */
  108.     kOCEDirectoryIdentitySetupDoesNotExist = -1564,                /* DirectoryIdentity setup does not exist */
  109.     kOCENotLocalIdentity        = -1565,                        /* Use LocalIdentity calls instead! */
  110.     kOCENoMoreIDs                = -1566,                        /* identity table is full */
  111.     kOCEUnknownID                = -1567,                        /* identity passed is not valid */
  112.     kOCEOperationDenied            = -1568,                        /* LocalID operation denied */
  113.     kOCEAmbiguousMatches        = -1569,                        /* ambiguous matches found in resolving CIDs (more than 1 CID) */
  114.     kOCENoASDSPWorkSpace        = -1570,                        /* No ASDSP workspace passed for Open Secure Stream */
  115.     kOCEAuthenticationTrouble    = -1571                            /* generic authentication problem */
  116. };
  117.  
  118. /* AOCE Catalog Errors (-1610 to -1680) */
  119.  
  120. enum {
  121.     kOCENotLocal                = -1610,                        /* the server does not serve the requested dNode */
  122.     kOCETooBusy                    = -1611,                        /* server cannot complete call at this time */
  123.     kOCEDatabaseFull            = -1612,                        /* disk is full */
  124.     kOCETargetDirectoryInaccessible = -1613,                    /* Catalog server not responding */
  125.     kOCEBogusArgs                = -1614,                        /* Args not formatted correctly on the wire */
  126.     kOCENoSuchDNode                = -1615,                        /* the requested dNode does not exist */
  127.     kOCEDNodeUnavailable        = -1616,                        /* could not find any servers that serve the requested dNode */
  128.     kOCEBadRecordID                = -1617,                        /* invalid RecordID (usually name and/or type don't match cid) */
  129.     kOCENoSuchRecord            = -1618,                        /* the specified record does not exist */
  130.     kOCENoSuchAttributeValue    = -1619,                        /* The attribute value that was passed in does not exist */
  131.     kOCENoSuchPseudonym            = -1620,                        /* the specified pseudonym does not exist */
  132.     kOCEAttributeValueTooBig    = -1621,                        /* self-explanatory */
  133.     kOCETypeExists                = -1622,                        /* The type already exists in the record */
  134.     kOCEMoreData                = -1623,                        /* only a warning - buffer not big enough */
  135.     kOCERefNumBad                = -1624,                        /* RefNum is not valid */
  136.     kOCEStreamCreationErr        = -1625,                        /* problem creating stream */
  137.     kOCEOperationNotSupported    = -1626,                        /* the specified catalog does not support this operation */
  138.     kOCEPABNotOpen                = -1627,                        /* specified Personal Catalog is not open to make the operation */
  139.     kOCEDSAMInstallErr            = -1628,                        /* specified CSAM could not be installed */
  140.     kOCEDirListFullErr            = -1629,                        /* catalog list is full, try removing an entry */
  141.     kOCEDirectoryNotFoundErr    = -1630,                        /* catalog was not found in the list */
  142.     kOCEAbortNotSupportedForThisCall = -1631,                    /* this call cannot be aborted */
  143.     kOCEAborted                    = -1632,                        /* this call was aborted */
  144.     kOCEOCESetupRequired        = -1633,                        /* LocalIdentity Setup is required */
  145.     kOCEDSAMRecordNotFound        = -1634,                        /* CSAM Record not found */
  146.     kOCEDSAMNotInstantiated        = -1635,                        /* CSAM is not instantiated */
  147.     kOCEDSAMRecordExists        = -1636,                        /* CSAM record already exists */
  148.     kOCELengthError                = -1637,                        /* supplied buffer was too small */
  149.     kOCEBadStartingRecord        = -1638,                        /* Lookup starting record is not within range */
  150.     kOCEBadStartingAttribute    = -1639,                        /* Lookup starting attribute is not within range */
  151.     kOCEMoreAttrValue            = -1640,                        /* attribute value could not fit into buffer (even though it was the only value) */
  152.     kOCENoDupAllowed            = -1641,
  153.     kOCENoSuchAttributeType        = -1642,
  154.     kOCEMiscError                = -1643,                        /* some other error */
  155.     kOCENoSuchIcon                = -1644,                        /* no matching icon from GetDirectoryIcon */
  156.     kOCERLIsDontMatch            = -1645,                        /* RLIs do not match in lookup */
  157.     kOCEDirectoryCorrupt        = -1646                            /* Serious disk fill corruption problem */
  158. };
  159.  
  160. /* AOCE Standard Mail Errors (-1900 to -1949) */
  161.  
  162. enum {
  163.     kSMPNotEnoughMemoryForAllRecips = -1900,
  164.     kSMPCopyInProgress            = -1901,
  165.     kSMPMailerNotInitialized    = -1902,
  166.     kSMPShouldNotAddContent        = -1903,
  167.     kSMPMailboxNotFound            = -1904,
  168.     kSMPNoNextLetter            = -1905,
  169.     kSMPHasOpenAttachments        = -1906,
  170.     kSMPFinderNotRunning        = -1907,
  171.     kSMPCommandDisabled            = -1908,
  172.     kSMPNoMailerInWindow        = -1909,
  173.     kSMPNoSuchAddress            = -1910,
  174.     kSMPMailerAlreadyInWindow    = -1911,
  175.     kSMPMailerUneditable        = -1912,
  176.     kSMPNoMatchingBegin            = -1913,
  177.     kSMPCannotSendReceivedLetter = -1914,
  178.     kSMPIllegalForDraftLetter    = -1915,
  179.     kSMPMailerCannotExpandOrContract = -1916,
  180.     kSMPMailerAlreadyExpandedOrContracted = -1917,
  181.     kSMPIllegalComponent        = -1918,
  182.     kSMPMailerAlreadyNotTarget    = -1919,
  183.     kSMPComponentIsAlreadyTarget = -1920,
  184.     kSMPRecordDoesNotContainAddress = -1921,
  185.     kSMPAddressAlreadyInList    = -1922,
  186.     kSMPIllegalSendFormats        = -1923,
  187.     kSMPInvalidAddressString    = -1924,
  188.     kSMPSubjectTooBig            = -1925,
  189.     kSMPParamCountErr            = -1926,                        /*  enclosure count != 1, while sendEnclosure Only == true. */
  190.     kSMPTooManyPages            = -1927,                        /*  Exceeding the image page limit. */
  191.     kSMPTooManyEnclosures        = -1928
  192. };
  193.  
  194. /* AOCE Standard Catalog Errors (-1950 to -1969) */
  195.  
  196. enum {
  197.     kSDPNoSearchText            = -1950,
  198.     kSDPTooManyLoginAttempts    = -1951,
  199.     kSDPNoSelection                = -1952,
  200.     kSDPPersonalDirectoryRepairFailed = -1953
  201. };
  202.  
  203. /* AOCE Digital Signature Errors (-1970 to -1999) */
  204.  
  205. enum {
  206.     kSIGOperationIncompatibleErr = -1970,                        /* context in use for different type of operation */
  207.     kSIGCertificateQueryDenied    = -1971,                        /* can't query certificates with this context */
  208.     kSIGVerifyFailedErr            = -1972,                        /* verification failed */
  209.     kSIGInvalidCredentialErr    = -1973,                        /* verified OK but credential out of date,  either pending or expired */
  210.     kSIGIndexErr                = -1974,                        /* the index given is outside the range of allowable values */
  211.     kSIGSignerErr                = -1975,                        /* problem with the signer or signature itself */
  212.     kSIGPasswordErr                = -1976,                        /* password is incorrect */
  213.     kSIGInternalsErr            = -1977,                        /* an internal error occurred like a bad digest, context or signature */
  214.     kSIGToolboxNotPresentErr    = -1978,                        /* for client services (ie servers) to report back - not retruned by the TB */
  215.     kSIGContextPrepareErr        = -1979,                        /* context either prepared with VerifyPrepare, SignPrepare or DigestPrepare already or has been corrupted */
  216.     kSIGNoDigestErr                = -1980,                        /* no digest in the signature */
  217.     kSIGConversionErr            = -1981,                        /* unabled to convert an attribute to Mac format */
  218.     kSIGSignerNotValidErr        = -1982,                        /* Signer has either expired or is pending and can not sign */
  219.     kSIGNoSignature                = -1983                            /* standard file signature not found */
  220. };
  221.  
  222. /* AOCE Templates Errors (-15000 to -15039) */
  223.  
  224. enum {
  225.     kDETInvalidTargetAspectName    = -15000,                        /* Could not locate an aspect by name */
  226.     kDETInvalidTargetItemNumber    = -15001,                        /* Item number is target invalid (out of range 1..<number of children>) */
  227.     kDETInvalidTargetFromNonAspect = -15002,                    /* Target selection relative to non-aspect object which requires an aspect */
  228.     kDETInvalidTargetDSSpec        = -15003,                        /* Target DSSpec could not be resolved */
  229.     kDETUnknownTargetSelector    = -15004,                        /* Unknown selector type for target specification */
  230.     kDETInvalidTarget            = -15005,                        /* Target specification was invalid (for reasons other than those above) */
  231.     kDETTargetNotAnAspect        = -15006,                        /* Specified target object was not an aspect */
  232.     kDETInvalidCommandItemNumber = -15007,                        /* Command item number invalid (out of range 1..<number of items in selection>) */
  233.     kDETUnableToGetCommandItemSpec = -15008,                    /* Unable to retrieve item specification (internal error, possibly out of memory) */
  234.     kDETRequestedTypeUnavailable = -15009,                        /* Command item could not be represented in the form requested */
  235.     kDETInvalidDSSpec            = -15010,                        /* Could not resolve DSSpec (other than in target; see error above for targets) */
  236.     kDETUnableToAccessProperty    = -15011,                        /* Property could not be found and/or created */
  237.     kDETInfoPageNotOpen            = -15012,                        /* Info-page not open; request requires an open info-page */
  238.     kDETNoSuchView                = -15013,                        /* No view found with specified property number */
  239.     kDETCouldNotAddMenuItem        = -15014,                        /* Could not add item to dynamic menu */
  240.     kDETCouldNotRemoveMenuItem    = -15015,                        /* Could not remove item from dynamic menu */
  241.     kDETCouldNotFindMenuItem    = -15016,                        /* Could not find menu item */
  242.     kDETCouldNotFindCustomView    = -15017,                        /* Could not find custom view in info-page */
  243.     kDETInvalidReqFunction        = -15018,                        /* Invalid call-back request function */
  244.     kDETInvalidCallBack            = -15019,                        /* Invalid call-back (for reasons other than those above) */
  245.     kDETPropertyBusy            = -15020                        /* Edit is open on the property being set */
  246. };
  247.  
  248. /* AOCE Mail Errors (-15040 to -15089) */
  249.  
  250. enum {
  251.     kMailInvalidOrder            = -15040,                        /* This object has already been written to and cannot be written again */
  252.                                                                 /* handle non-zero offsets for now */
  253.     kMailInvalidSeqNum            = -15041,                        /* Invalid letter sequence o refers to an non-existent letter */
  254.     kMailAttrNotInHdr            = -15042,                        /* attribute does not exist in this letter header */
  255.     kMailHdrAttrMissing            = -15043,                        /* required attribute not written into letter header */
  256.     kMailBadEnclLengthErr        = -15044,                        /* incorrect number of bytes has been written after memForm of PutEnclosure */
  257.     kMailInvalidRequest            = -15045,                        /* cannot putAttr for report, putRcptReport for letter */
  258.     kMailInvalidPostItVersion    = -15046,                        /* cannot create new postit with this version */
  259.     kMailNotASlotInQ            = -15047,                        /* queueID does not refer to a slot's incoming queue */
  260.     kMailLtrNotOpen                = -15048,                        /* letter is not open, probably not cached in inQ */
  261.     kMailMissingMailCat            = -15049,                        /* trying to create message in inq, with no postIt */
  262.     kMailCannotWriteMailCat        = -15050,                        /* cannot update a mail catentry */
  263.     kMailTooManyTagsPerLetter    = -15051,                        /* cannot add more than kMaxTagsPerLetter tags */
  264.     kMailGwyDead                = -15052,                        /* MSAM died */
  265.     kMailIgnoredErr                = -15053,                        /* ePPC message was ignored */
  266.     kMailLengthErr                = -15054,                        /* ePPC message did not complete */
  267.     kMailTooManyErr                = -15055,                        /* Too many = request outstanding, */
  268.     kMailNoMSAMErr                = -15056,                        /* no MSAMs found in mailbox! or for command */
  269.     kMailCancelled                = -15057,
  270.     kMailSlotSuspended            = -15058,
  271.     kMailMSAMSuspended            = -15059,
  272.     kMailBadSlotInfo            = -15060,
  273.     kMailMalformedContent        = -15061,                        /* a mailed structure is malformed */
  274.     kMailNoSuchSlot                = -15062,                        /* no such slot */
  275.     kMailBadLtrInfo                = -15063,                        /* bad info there, can't change */
  276.     kMailSetFailed                = -15064,                        /* could not set letter info */
  277.     kMailBadConfig                = -15065,                        /* MSAM has bad config info */
  278.     kMailBadMSAM                = -15066,                        /* bad MSAM: not usable = reason unspec, */
  279.     kMailCannotLkupServerSlots    = -15067,                        /* cannot lookup adas for server mail slots */
  280.     kMailBadState                = -15068                        /* the state specifiy is not in any of defined */
  281. };
  282.  
  283. /* AOCE Messaging Errors (-15090 to -15169) */
  284.  
  285. enum {
  286.     kIPMCantCreateIPMCatEntry    = -15090,
  287.     kIPMInvalidMsgType            = -15091,                        /* bad msg hint */
  288.     kIPMInvalidProcHint            = -15092,                        /* bad proc hint */
  289.     kIPMInvalidOffset            = -15093,                        /* bad offset for read/write */
  290.     kIPMUpdateCatFailed            = -15094,
  291.     kIPMMsgTypeReserved            = -15095,
  292.     kIPMNotInABlock                = -15096,
  293.     kIPMNestedMsgOpened            = -15097,
  294.     kIPMA1HdrCorrupt            = -15098,
  295.     kIPMCorruptDataStructures    = -15099,
  296.     kIPMAbortOfNestedMsg        = -15100,
  297.     kIPMBlockIsNotNestedMsg        = -15101,
  298.     kIPMCacheFillError            = -15102,
  299.     kIPMInvalidSender            = -15103,
  300.     kIPMNoRecipientsYet            = -15104,
  301.     kIPMInvalidFilter            = -15105,
  302.     kIPMAttrNotInHdr            = -15106,
  303.     kIPMBlkNotFound                = -15107,
  304.     kIPMStreamErr                = -15108,                        /* Error on stream (should this ever go out?) */
  305.     kIPMPortClosed                = -15109,                        /* Port closed (should this ever go out?) */
  306.     kIPMBinBusy                    = -15110,
  307.     kIPMCorruptedBin            = -15111,
  308.     kIPMBadQName                = -15112,
  309.     kIPMEndOfBin                = -15113,
  310.     kIPMBinNeedsConversion        = -15114,
  311.     kIPMMgrInternalErr            = -15115,
  312.     kIPMEltBusy                    = -15116,
  313.     kIPMEltClosedNotDeleted        = -15117,
  314.     kIPMBadContext                = -15118,
  315.     kIPMContextIsClosing        = -15119,
  316.     kIPMeoQ                        = -15120,
  317.     kIPMQOutOfSpace                = -15121,
  318.     kIPMEltNotFound                = -15122,
  319.     kIPMBinOutOfSpace            = -15123,
  320.     kIPMeoCatEntry                = -15124,
  321.     kIPMeoElt                    = -15125,
  322.     kIPMQBusy                    = -15126,
  323.     kIPMNotSameBin                = -15127,
  324.     kIPMNoMoreServices            = -15128,
  325.     kIPMLookupAttrTooBig        = -15129,                        /* attribute in lookup is too big */
  326.     kIPMUnknownUAM                = -15130,
  327.     kIPMUnsupportedLogin        = -15131,
  328.     kIPMLogInUnknown            = -15132,
  329.     kIPMNoMoreFilters            = -15133,
  330.     kIPMCouldNotReadInfoReply    = -15134,
  331.     kIPMInvalidUser                = -15135,
  332.     kIPMNoMoreSessions            = -15136,
  333.     kIPMNilUserProc                = -15137,
  334.     kIPMBadCatSize                = -15138,
  335.     kIPMIncompleteMsg            = -15139,
  336.     kIPMNoResponsibleTunnel        = -15140,
  337.     kIPMAccessDenied            = -15141,
  338.     kIPMReplyParamUnderrun        = -15142,                        /* Too few reply parameters */
  339.     kIPMReplyParamOverrun        = -15143,                        /* Too many reply parameters */
  340.     kIPMRequestParamUnderrun    = -15144,                        /* Too few request parameters */
  341.     kIPMOutOfSync                = -15145,                        /* Protocol sync. error */
  342.     kIPMNoAttrsFound            = -15146,                        /* couldn't find any attrs in lookup */
  343.     kIPMWrongAttrTag            = -15147,                        /* wrong attr tag in adas lookup */
  344.     kIPMNullCID                    = -15148,                        /* null cid in enumerate */
  345.     kIPMBadMailSlotAttrVal        = -15149                        /* invalid mailslot attr value */
  346. };
  347.  
  348. #endif
  349.  
  350. #if PRAGMA_ALIGN_SUPPORTED
  351. #pragma options align=reset
  352. #endif
  353.  
  354. #if PRAGMA_IMPORT_SUPPORTED
  355. #pragma import off
  356. #endif
  357.  
  358. #ifdef __cplusplus
  359. }
  360. #endif
  361.  
  362. #endif /* __OCEERRORS__ */
  363.  
  364.